package com.sdleyou.treepro.common.controller;

import com.sdleyou.treepro.common.response.DataResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @RequestMapping("/")
    public String home(){
        return "Hello World!";
    }

    @GetMapping("/test")
    @ResponseBody
    public DataResponse test(){
        DataResponse response = new DataResponse();
        response.setStatusCode("000000");
        return response;
    }

    @GetMapping("/test1")
    @ResponseBody
    public DataResponse test1(){
        DataResponse response = new DataResponse();
        response.setStatusCode("000000");
        return response;
    }
}
